﻿using MES.Desktop.SystemModule.Views;
using MES.Desktop.SystemModule.Views.Dialogs;
using Prism.Ioc;
using Prism.Modularity;

namespace MES.Desktop.SystemModule
{
    public class ModuleSystem : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {

        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<UploadView>();
            containerRegistry.RegisterForNavigation<MenuView>();
            containerRegistry.RegisterForNavigation<DepartView>();
            containerRegistry.RegisterForNavigation<PostView>();
            containerRegistry.RegisterForNavigation<UserView>();
            containerRegistry.RegisterForNavigation<FuncView>();
            containerRegistry.RegisterForNavigation<RoleView>();
            containerRegistry.RegisterDialog<ModifyMenuView>();
            containerRegistry.RegisterDialog<ModifyDepartView>();
            containerRegistry.RegisterDialog<ModifyPostView>();
            containerRegistry.RegisterDialog<ModifyUserView>();
            containerRegistry.RegisterDialog<ModifyFuncView>();
            containerRegistry.RegisterDialog<ModifyRoleView>();
            containerRegistry.RegisterDialog<SelectUserView>();
            containerRegistry.RegisterDialog<SelectRoleView>();
        }
    }
}
